import request from '@/plugin/axios'

export function AccountLogin (query) {
  return request({
    url: 'api/TokenAuth/Authenticate',
    method: 'post',
    data: {
      userNameOrEmailAddress: query.username,
      password: query.password
    }
  })
}
export function GetMenuList () {
  return request({
    url: 'api/services/app/Menu/GetUserMenuList',
    method: 'get'
  })
}
export function GetMenuButtonList () {
  return request({
    url: 'api/services/app/Menu/GetUserMenuButtonList',
    method: 'get'
  })
}
